import request from '@/utils/request'


//评价列表
export function shopevaluateList(params) {
    return request({
      url: '/merchant/v1/customer/shopevaluate/adminList',
      method: 'get',
      params
    })
}

//添加评价
export function addShopevaluate(data) {
    return request({
        url: '/merchant/v1/customer/shopevaluate',
        method: 'post',
        data
    })
}

//编辑评价
export function editShopevaluate(data) {
    return request({
        url: '/merchant/v1/customer/shopevaluate',
        method: 'put',
        data
    })
}
// 店铺评价切换显示
export function isShowShopevaluate(id) {
    return request({
        url: `/merchant/v1/customer/shopevaluate/${id}`,
        method: 'put',
    })
}
// 删除评价
export function delShopevaluate(id) {
    return request({
        url: `/merchant/v1/customer/shopevaluate/${id}`,
        method: 'delete',
    })
}
// 评价详情
export function getInfoShopevaluate(id) {
    return request({
        url: `/merchant/v1/customer/shopevaluate/getInfo/${id}`,
        method: 'get',
    })
}

// 查询 正常店铺
export function normalShopSelect() {
    return request({
        url: '/common/v1/getNormalShopSelect',
        method: 'get',
    })
}

